package com.zhang.sparktool.config

import com.typesafe.config.{Config, ConfigFactory}

/**
 * @author: ZhangGuowen
 * @Title: EnvConfig
 * @ProjectName: empi
 * @Description:
 * @date: 2021/7/12 17:18
 */
object EnvConfig extends java.io.Serializable {

  val config: Config = ConfigFactory.load()

  def getString(path: String): String = {
    config.getString(path)
  }

  def getInteger(path: String): Integer = {
    config.getString(path).toInt
  }

  def getDouble(path: String): Double = {
    config.getString(path).toDouble
  }

}
